#BEGIN
#name=mingetty
#nead=
#END

apt-get install mingetty -y || exit 1


#cat /etc/inittab | grep tty > TOTO.log

sed -e "s/^\([1-2]:.*\)\/sbin\/getty.*\(tty[1-2]\)/\1\/sbin\/mingetty --autologin gef \2/" /etc/inittab

